<?php
/**
 * 代金券
 *
 * by abc.com 多用户商城
 *
 *
 */
//by abc.com
//use Shopnc\Tpl;

defined('InShopNC') or exit('Access Invalid!');
class voucherControl extends mobileHomeControl{
	public function __construct() {
        parent::__construct();
    }

    //获取代金券列表
    public function voucher_listOp(){
    	$model_voucher=Model('voucher');
    	//现在是单店，如果以后多点，还需要判断店铺id：voucher_t_store_id
    	
    	//所需字段
    	$condition['voucher_t_state']=1;
        $voucher_list=$model_voucher->getVoucherTemplateList($condition);
        output_data(array('voucher_list' => $voucher_list));
        
    }

}